# Makefile for raccoon
#
# 29/10/2008 Initial Release	Rodrigo Rearden>
#

CFLAGS=	-DPOSIX -D_MINIX -D_POSIX_SOURCE -O -wo 
LDFLAGS=-fnone
BINDIR=	/usr/bin
LIBDIR= /usr/lib/i386

all: window

window:
	cc $(CFLAGS) window.c -lxlib -o window && install -S 24m -cs -o bin window $(BINDIR)
    
clean:
	rm -f window

tar:
	tar cvf window.tar Makefile window.c

install:	$(BINDIR)/$(PROG) $(LIBDIR)/libxlib.a

$(BINDIR)/$(PROG):	$(PROG)
	install -S 8m -cs -o bin $@ $(BINDIR)
